#include "ogl/gut/Material.h"
#include "ogl/gut/Dictionary.h"
#include "imgui/Editor.h"

using namespace Ogl::Gut;

template <>
bool ImGui::Editor::Edit(const std::string &label, Ogl::Gut::Material::Desc &inst)
{
    int index = 0;
    if (TreeNode(label.c_str(), inst.m_BitFlag, index++))
    {
        EditInst<std::string>("Path", inst.m_Path);
        EditInst<int>("index", inst.m_Index);
        TreePop();
    }

    return false;
};

template <>
bool ImGui::Editor::Edit(const std::string &label, Ogl::Gut::Material &inst)
{
    int index = 0;
    if (TreeNode(label.c_str(), inst.m_BitFlag, index++))
    {
        EditInst<Material::Desc>("Desc", inst.m_Desc);
        TreePop();
    }

    return false;
};